<template>
	<view>
		<view class="box1">
			<view class="">
				{{hotelDetail.hotelName}}
			</view>
			<view class="">
				<text>客房</text>
				<text>{{hotelDetail.roomNum}}间客房</text>
			</view>
			<view class="">
				<text>电话</text>
				<text>{{hotelDetail.phone}}</text>
				<image class="icon" src="../../static/img/13.png" mode=""></image>
			</view>
		</view>
		
		<view class="container">
			<view class="title">
				酒店介绍
			</view>
			<view class="hotel-detail-box" v-html="hotelDetail.remark">
				<view class="hotel-detail-box">
					爱看大家都开会使肌肤康师傅加快速度干嘛呢梵蒂冈，狂热好看见人肯定是非公开赛
				</view>
				<image src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2037006078,4204402083&fm=26&gp=0.jpg" mode=""></image>
			</view>
		</view>
		
		
	</view>
</template>

<script>
	import {
		request
	} from '../../static/utils/api.js'
	export default {
		data() {
			return {
				hotelDetail: {}
			}
		},
		onLoad(options) {
			console.log(1, options);
			let hotelId = options.hotelid
			request({
				url: 'api/fanStuProcess/detail',
				method: 'post',
				data: {
					userId: '16e677470fe24e3c89391db8ba8a2f34',
					hotelId: '9e87cfa95d2649dfa7aeb66e4339f585'
				}
			}).then(res => {
				console.log(res)
				res.data.remark = res.data.remark.replace(/<img/g, '<img style="max-width: 100%; border-radius: 0 0 15px 15px;"')
				this.hotelDetail = res.data
			})
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f6f7fb;
	}
	
	.box1 {
		background-color: #fff;
		padding: 20rpx 30rpx;
		font-size: 30rpx;
		
		view {
			margin: 20rpx 0;
			text:nth-of-type(1) {
				color: #999;
				margin-right: 30rpx;
			}
		}
		.icon {
			width: 50rpx;
			height: 50rpx;
			vertical-align: middle;
			float: right;
		}
	}
	.title {
		font-size: 40rpx;
		color: #333;
		margin: 30rpx 0;
	}
	.container {
		padding: 0 30rpx;
		.hotel-detail-box {
			background-color: #FFFFFF;
			padding: 20rpx;
			border-radius: 20rpx;
			.hotel-detail-box {
				font-size: 28rpx;
				color: #999;
				line-height: 40rpx;
				text-indent: 2em;
			}
			image {
				width: 100%;
				border-radius:  0 0 20rpx 20rpx;
			}
		}
	}
</style>
